%!TEX program = xelatex
\documentclass[12pt,a4paper,openany,twoside,cap]{ctexbook}
\input{setup/package.tex}   %引用宏包所在位置
\input{setup/format.tex}    %格式所在位置
\begin{document}
%定义所有的图片文件在 figures 子目录下
\graphicspath{{FIG/}}
\pagenumbering{Roman}    %Roman字体书写页码
%---------------------------------------------------封面等-----------------------
\include{PREFACE/COVER}                         %封面
\include{PREFACE/Intro}         %                 %简介
%\include{preface/intro2}                        %序
%\include{preface/preface2}                   %二版前言
%\include%{preface/preface}                     %前言
%\include{preface/c_abstract}             %中文摘要
%\include{preface/e_abstract}             %英文摘要
%-------------------------------------目录部分------------------------------------------
\setcounter{page}{1}   %重新开始页码
\renewcommand\contentsname{目\qquad 录}
\renewcommand{\listfigurename}{插图目录}
\renewcommand{\listtablename}{表格目录}
%\newcommand{\loflabel}{Tab.}%在图目录编号前添加Tab.
%\newcommand{\lotlabel}{Fig.}
%-------------------下面善三行去掉了目录首页页码---------------------
\makeatletter
\let\ps@plain\ps@empty
\makeatother
%-------------------------------------------------------------------------
\clearpage%目录页另起一页，且后面章节也另起一页
\tableofcontents                                    %目录
%\addtocontents{toc}{\protect\begin{multicols}{2}}       %目录分两栏开始
\clearpage
\clearpage
%% 插图目录
%\renewcommand{\numberline}[1]{\loflabel~#1\hspace*{1em}}%设置图目录编号样式，主要是间距
%\titlecontents{figure}{\songti\zihao{-4}}{\figurename~\thecontentslabel\quad}{\hspace*{-1.5cm}}{\titlerule*[0.12cm]{.}\contentspage}[\addvspace{6pt}]
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures
\clearpage
%% 表格目录
\renewcommand{\numberline}{\tablename~\oldnumberline}%
%\renewcommand{\numberline}[1]{\lotlabel~#1\hspace*{1em}}
\listoftables
\clearpage
%\titlecontents{tables}

\mainmatter    %前言和目录页码结束，正文重新开始设置页码
%-----------------------------------------正文开始------------------------------
\include{book/chap0}       %第零章
\include{book/chap1}       %第一章
\include{book/chap2}       %第二章
\include{book/chap3}       %第三章
\include{book/chap4}       %第四章
\include{book/chap5}       %第五章
\include{book/chap6}       %第六章
\include{book/chap7}       %第七章
\include{book/chap8}       %第八章
\include{book/chap9}       %第九章
\include{book/chap10}       %第十章
\include{book/chap11}       %第十一章
%\include{book/chap12}       %第十二章
%\addtocounter{chapter}{7}
%-----------------------------------------正文结束------------------------------
%\include{book/answer}      %习题答案
%\addtocontents{toc}{\protect\end{multicols}}   %目录分两栏结束
%\newpage
%\bibliographystyle{unsrtnat}
%\bibliography{reference/references}                               %参考文献部分
\include{reference/references}                               %参考文献部分
\clearpage
\end{document}

